#ifndef __MY_DWM1000_H
#define __MY_DWM1000_H

#include "stm32f10x.h"
#include "sys.h"
#include "Include.h"
#include "delay.h"
#include "port.h"
#include "deca_device_api.h"
#include "deca_regs.h"
#include "deca_sleep.h"
#include "includes.h"
#include "task.h"
#include "stdbool.h"
#include "mymath.h"
#include "malloc.h"
void dwm1000_init(void);

int change_channel_param(uint8_t channel);
uint64_t get_tx_timestamp(void);
uint64_t get_rx_timestamp(void);



void UWBObjectInit(void);
void UWB_Receive(void *prg);
void UWB_Send(void *prg);
void UWB_ScanChanel(void *prg);
void UWB_SwitchChanel(void *prg);
void UWB_Manager(void *prg);
void UWB_Check(void *prg);
//void UWB_LoaclCompute(void *prg);
void UWB_PackAnalysis(void *prg);

uint8_t GetUnitExist(uint16_t Addr);
#endif

